/**
 * 项目名称：MSH
 * 包名称：com.mt.common.sys.serviceImpl
 * 文件名称：FunctionServiceImpl.java
 */
package com.mt.system.serviceImpl;

import javax.annotation.Resource;


import org.springframework.flex.remoting.RemotingDestination;
import org.springframework.stereotype.Service;

import com.mt.system.dao.FunctionDao;
import com.mt.system.domain.Funct;
import com.mt.system.service.FunctionService;


/**
 * 类名称：FunctionServiceImpl <br>
 * 类描述： <br>
 * 创建人： 马腾 <br>
 * 创建时间：Oct 18, 2012 2:02:24 PM <br>
 */
@Service("FunctionService")
@RemotingDestination(channels = {"my-amf"})
public class FunctionServiceImpl implements FunctionService {
	
	@Resource
	private FunctionDao functionDao;

	@Override
	public Funct addFunction(Funct funct) {
		return functionDao.addFunction(funct);
	}

	@Override
	public void updateFunction(Funct funct) {
		functionDao.updateFunction(funct);
	}

	@Override
	public void deleteFunction(Funct funct) {
		functionDao.deleteFunction(funct);
	}

	@Override
	public Funct getFunctionByName(String name) {
		return functionDao.getFunctionByName(name);
	}
}
